package com.spring.service.content;

import java.util.List;

import com.spring.domain.Content;
import com.spring.domain.File;
import com.spring.domain.User;
import com.spring.domain.vo.ImgContent;

public interface IContent {
	public List<Content> 	getContents();
	public List<Content> 	getContentsByType(int id);
	public int 				insert(Content content);
	public void 			delete(List<Content> content);
	public Content 			getContentById(int id);
	public void 			update(Content content);
	public List<Content> 	getContentByMail(Content content);
	
	
	public void  			insertUserRelation(List<User> users, int contentId);
	public void 			deleteUserRelation(List<User> users,int idContent) ;
	public List<User>       getUsersRelated(int contentId);
	
	public List<ImgContent> getImgRelated(int contentId);
	public List<ImgContent> getImg();
	public void  			insertImgRelation(List<File> files, int contentId);
	public void 			deleteImageRelation(List<File> users,int idContent) ;
	public void  			updatePositionImgRelation(File file, int contentId, int position);
	
	public List<File> 		getFileRelated(int contentId);
	public List<File> 		getFile();
	public void  			insertDocumentRelation(List<File> files, int contentId);
	public void 			deleteDocumentRelation(List<File> users,int idContent) ;
	
	public List<Content>    getGalleriesRelated(int contentId);
	public void 			insertGalleryRelation(List<Content> galleries, int contentId);
	public void 			deleteGallerytRelation(List<Content> galleries,int idContent) ;
}
